home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gSIVideoPath, gSIHDPath, gSIPathSep, cTHVRChannel, gTHHotspot, gTHNormalSize, cTHBigCheckSprite, cTHBiggerCheckSprite, cTHBigSprite, cTHBiggerSprite, gTHRefresh, gTHReopen, gTHVRPath, gHSCount, gTHCloseMovie, gSILastHwnd, gSISystem, gTHBrower, gSIGetPPStr
- set the exitLock to 1
- EndBufferingEvents()
- initVR()
- set gTHRefresh to 0
- set gTHReopen to 0
- set gTHCloseMovie to 0
- set cTHVRChannel to 44
- if fileExists(gSIHDPath & "VIDEO" & gSIPathSep & "TH.MOV") then
- set gTHVRPath to gSIHDPath & "VIDEO" & gSIPathSep
- else
- set gTHVRPath to gSIVideoPath
- end if
- set cTHBigSprite to 15
- set cTHBiggerSprite to 16
- set cTHBigCheckSprite to 17
- set cTHBiggerCheckSprite to 18
- set vV to HSStateGet("th", "vrV")
- set vH to HSStateGet("th", "vrH")
- set vZ to HSStateGet("th", "vrZ")
- set gTHNormalSize to not value(HSStateGet("th", "notNormalSize"))
- VRNormalSize(gTHNormalSize)
- initLocation()
- if gHSCount = 0 then
- set the visible of sprite 47 to 0
- else
- set the visible of sprite 47 to 1
- end if
- if gSISystem = "WIN" then
- set gSILastHwnd to -1
- end if
- end
-
- on stopMovie
- end
-
- on keyDown
- if the keyCode = 122 then
- LaunchHelp()
- end if
- end
-
- on cleanUp
- global gPanoMovieObj, gTHNormalSize, gSISystem
- puppetSound(0)
- if gSISystem = "WIN" then
- WIN_QT_Close()
- else
- DVClose()
- end if
- set vH to PanoGetHPanAngle()
- set vV to PanoGetVPanAngle()
- set vZ to PanoGetZoomAngle()
- HSStatePut("th", "vrV", vV)
- HSStatePut("th", "vrH", vH)
- HSStatePut("th", "vrZ", vZ)
- HSStatePut("th", "notNormalSize", not gTHNormalSize)
- cleanUpVR()
- DisableIdleAnim()
- end
-